from django.conf.urls.defaults import *
from django_restapi.model_resource import Collection
from django_restapi.responder import *
from gausers.models import Gauser

template_gauser_resource = Collection(
    queryset = Gauser.objects.all(),
    permitted_methods = ('GET', 'POST', 'PUT', 'DELETE'),
    responder = TemplateResponder(
        template_dir = 'users',
        #template_object_name = 'gauser',
    )
)

urlpatterns = patterns('',
   url(r'^html/gauser/creator/$', template_gauser_resource.responder.create_form),
)
